package com.xms.core.data;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * DataTable
 * </p>
 *
 * @author migo
 * @since 2021/10/4
 */
public class DataTable implements Serializable {
    private List<String> columns;
    private List<Object[]> rows;

    public DataTable(){}

    public DataTable(List<String> columns) {
        this.columns = columns;
    }
    public DataTable(List<String> columns, List<Object[]> rows) {
        this.columns = columns;
        this.rows = rows;
    }

    public List<String> getColumns() {
        return this.columns;
    }

    public void setColumns(List<String> columns) {
        this.columns = columns;
    }


    public List<Object[]> getRows() {
        return this.rows;
    }

    public void setRows(List<Object[]> rows) {
        this.rows = rows;
    }

    public long size(){
        return this.rows.size();
    }
}
